import React from "react";

import Address from "./Address";
import GoRealName from "./GoRealName";
import ShoppingMain from "./ShoppingMain";
import Statistics from "./Statistics";
import style from './index.module.css'
import { RouteComponentProps,withRouter } from "react-router-dom";
const {shopping_car} = style
function Shopping_cart(props:RouteComponentProps){
    return (
        <div className={shopping_car}>
            <Address />
            {
                props.location.state
                &&
                <GoRealName />
            }
            <ShoppingMain />
            <Statistics/>
        </div>
    )
}
export default withRouter(Shopping_cart)